import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class LambdaTest {
    public static void main(String[] args) {
        List<String> list= Arrays.asList("java","mysql","lambda","spring");
//        for(String item:list){
//            System.out.println(item);
//        }
        //lambda
        list.forEach((String item)->{
            System.out.println(item);
        });
        System.out.println();
        //简介lambda
//        list.forEach(item->System.out.println(item));










    }
}
